package ch06_container.collections;

import org.junit.Test;

import java.util.*;

/**
 * @author guod
 * @version 1.0
 * @since 1.8
 */
public class CollectionsMain {
    @Test
    public void test01() {
        Set<Object> objects = Collections.newSetFromMap(new HashMap<>());
        for (Object object : objects) {
            System.out.println(object);
        }
    }

    // 反转List
    @Test
    public void test02() {
        List<Integer> nubs = Arrays.asList(1, 2, 3);
        Collections.reverse(nubs);
        System.out.println(nubs);
    }
}
